using MediatR;
using RBAC.ErrorCode;
using System.Collections.Generic;
using RBAC.Read.Api.Application.Dto.ERP;

namespace RBAC.Read.Api.Application.Command.ERP.WarehouseManagement
{
    /// <summary>
    /// 仓库模糊查询（返回Id与名称）
    /// </summary>
    public class SearchWarehouseCommand : IRequest<APIResult<List<WarehouseOptionDto>>>
    {
        /// <summary>
        /// 关键字（按仓库名称模糊匹配）
        /// </summary>
        public string? Keyword { get; set; }

        /// <summary>
        /// 最大返回数量，默认20，最大50
        /// </summary>
        public int Top { get; set; } = 20;
    }
}
